Reshuffle the a11y tests a bit
authorMatthias Clasen <mclasen@redhat.com>
Tue, 10 Oct 2017 04:16:10 +0000 (00:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 10 Oct 2017 04:16:31 +0000 (00:16 -0400)
testsuite/a11y/a11ychildren.test.in
testsuite/a11y/a11yderive.test.in
testsuite/a11y/a11ymisc.test.in
testsuite/a11y/a11ytests.test.in
testsuite/a11y/a11ytext.test.in
testsuite/a11y/a11ytree.test.in
testsuite/a11y/a11yutil.test.in
testsuite/a11y/a11yvalue.test.in
testsuite/a11y/meson.build

index 04475922fe65ed2279cc21667375fa814ddcb6d0..105a06b33128dfa60f9f28506f1e0592f13b449f 100644 (file)
@@ -1,4 +1,4 @@
 [Test]
-Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/children --tap"
+Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/children --tap"
 Type=session
 Output=TAP
index b24dc3d2749f09c37c924ebf1f7c37e4f562af27..7cb38e3ba21f7e3b2e8951670158b06ce33fba4d 100644 (file)
@@ -1,4 +1,4 @@
 [Test]
-Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/derive"
+Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/derive"
 Type=session
 
index 0cbe27342bb125901fbc99a0e4cd383df9baace3..ef48414ae82377d60add628d9b45204138deb1e7 100644 (file)
@@ -1,4 +1,4 @@
 [Test]
-Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/misc --tap"
+Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/misc --tap"
 Type=session
 Output=TAP
index b158f5117b0538542fe69d3ab586a0c1ed327411..b67df9df707bf14c743adc0dd18d5ddde9b6cd21 100644 (file)
@@ -1,4 +1,4 @@
 [Test]
-Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 GTK_CSD=1 @libexecdir@/installed-tests/gtk+/accessibility-dump -k --verbose --directory @libexecdir@/installed-tests/gtk+/a11ytests"
+Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 GTK_CSD=1 @libexecdir@/installed-tests/gtk-4.0/a11y/accessibility-dump -k --verbose --directory @libexecdir@/installed-tests/gtk-4.0/a11y"
 Type=session
 
index 9a9c597fd944ec7eec9dcf2785c6d40d2ad3a315..dacc00998131ea3976bcd432d160e5bbfd7c5709 100644 (file)
@@ -1,4 +1,4 @@
 [Test]
-Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/text --tap"
+Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/text --tap"
 Type=session
 Output=TAP
index 081438d4de51c70f7eddfa5ea214f597db034e37..ac62adb7e1ff2f221ddeecc333435feac6871f76 100644 (file)
@@ -1,4 +1,4 @@
 [Test]
-Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/tree-relationships --tap"
+Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/tree-relationships --tap"
 Type=session
 Output=TAP
index fa6cc0bc911a630998c59b0fd7e6071858c8e617..819f479cb951cdb33fe99371f609d9bbad7fc5db 100644 (file)
@@ -1,4 +1,5 @@
 [Test]
-Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/util --tap"
+Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/util --tap"
+:q
 Type=session
 Output=TAP
index 70334ac48dba0ec727a5f1a01aea793617898489..db4fb9b786bf469b00d679f8f649788686623df4 100644 (file)
@@ -1,4 +1,4 @@
 [Test]
-Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk+/value --tap"
+Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 @libexecdir@/installed-tests/gtk-4.0/a11y/value --tap"
 Type=session
 Output=TAP
index b5e0814eeb0b7d2f497fda8f79224e00bd31de33..6a3a17e5880bb2caf5821d319407fc47299d368c 100644 (file)
@@ -10,12 +10,15 @@ a11y_tests = [
   'util',
 ]
 
+testexecdir = join_paths(installed_test_bindir, 'a11y')
+
 foreach t: a11y_tests
   test_prefix = 'a11y'
 
-  test ('@0@/@1@'.format(test_prefix, t),
-        executable ('@0@_@1@'.format(test_prefix, t.underscorify()),
-                    '@0@.c'.format(t),
+  test (t,
+        executable (t, '@0@.c'.format(t),
+                    install: get_option('install-tests'),
+                    install_dir: testexecdir,
                     dependencies: libgtk_dep),
         args: [ '--tap', '-k', ],
         env: installed_test_env)
@@ -32,17 +35,6 @@ a11y_installed_tests = [
   'a11ymisc.test',
 ]
 
-test_cdata = configuration_data()
-test_cdata.set('libexecdir', get_option('libexecdir'))
-
-foreach t: a11y_installed_tests
-  configure_file(input: '@0@.in'.format(t),
-                 output: t,
-                 configuration: test_cdata,
-                 install: true,
-                 install_dir: installed_test_datadir)
-endforeach
-
 installed_test_data = [
   'hello-world.ui',
   'hello-world.txt',
@@ -120,4 +112,17 @@ installed_test_data = [
   'tooltips.txt',
 ]
 
-install_data(installed_test_data, install_dir: join_paths(installed_test_bindir, 'a11ytests'))
+if get_option('install-tests')
+  test_cdata = configuration_data()
+  test_cdata.set('libexecdir', gtk_libexecdir)
+
+  foreach t: a11y_installed_tests
+    configure_file(input: '@0@.in'.format(t),
+                   output: t,
+                   configuration: test_cdata,
+                   install: true,
+                   install_dir: installed_test_datadir)
+  endforeach
+
+  install_data(installed_test_data, install_dir: testexecdir)
+endif